package cn.itsource.basic.base.service;

import cn.itsource.basic.base.query.BaseQuery;
import cn.itsource.basic.utli.PageList;


import java.util.List;

public interface IBaseService<T> {
    //查询所有
    List<T> querytAll();
    //基于id查询
    T queryByid(Long id);
    //增加
    void save(T t);
    //修改
    void update(T t);
    //删除
    void delect(Long id );
    //分页查询+条件
    PageList<T> queryByPage(BaseQuery query);
    //批量删除
    void batchDeletedelect(List<Long> ids);
}
